#!/usr/bin/env python
# encoding: utf-8
'''
@author: qiuyan
@contact: winston@peipeiyun.com
@file: __init__.py.py
@time: 2019/3/6 1:04 PM
@desc:
'''

from .basemodel import BaseModel
from peewee import *

class Config(BaseModel):

    only_tag = CharField(max_length=60,default='',unique=True,verbose_name='唯一的标记',help_text='唯一的标记')
    name = CharField(max_length=60,default='',verbose_name='名称',help_text='名称')
    value = TextField(null=True,verbose_name='值',help_text='值')

    class Meta:
        table_name = 'config'
        verbose_name = '基本配置参数'